// 装备参数
import request from "@/api/request";
//   headers: { "Content-Type": "application/json;charset=UTF-8" },

// 装备分类树
export const tree_equip = (params) => {
  return request({
    url: "/planmanage/es/equipTree/" + params,
    method: "post",
  });
};

export const treeList_equip = (params) => {
  return request({
    url: "/planmanage/es/equipmentList",
    method: "post",
    data: params,
  });
};

// 分页查询装备参数
export const select_equip = (params) => {
  return request({
    url: "/planmanage/ep/selectAll",
    method: "post",
    data: params,
  });
};

// 新增
export const add_equip = (params) => {
  return request({
    url: "/planmanage/ep/insert",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

//  修改
export const update_equip = (params) => {
  return request({
    url: "/planmanage/ep/update",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

//   查找详情
export const detials_equip = (params) => {
  return request({
    url: "/planmanage/ep/selectDetails/" + params,
    method: "post",
  });
};

//   删除
export const delete_equip = (params) => {
  return request({
    url: "/planmanage/ep/delete/" + params,
    method: "post",
  });
};